package GroupWare;

import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.util.Enumeration;

import javax.swing.Icon;
import javax.swing.JOptionPane;
import javax.swing.tree.MutableTreeNode;
import javax.swing.tree.TreeNode;

import Tools.IMG;
import Tools.InfoFormat;
import Windows.Tree.TreeNodePic;

public class ShareFile extends TreeNodePic {
	protected File f;
	public String md5;// 文件唯一标识：MD5
	private MutableTreeNode parent;
	private int childDirsum = 0;
	File[] fs;

	public ShareFile(File f) {
		this.f = f;
		md5 = InfoFormat.FileMD5(f);
		updateFileList();
	}

	public ShareFile(File f, String md5) {
		this(f);
		this.f = f;
		this.md5 = md5;

	}

	@Override
	public Enumeration<?> children() {
		// System.out.println("ShareFile:children()");

		Enumeration e = new Enumeration() {
			private int i = 0;// 游标

			/**
			 * 是否还有下一个
			 */
			@Override
			public boolean hasMoreElements() {
				return i < getChildCount();
			}

			@Override
			public Object nextElement() {
				File[] fs = f.listFiles();
				for (int j = i; j < fs.length; j++) {
					if (fs[j].isDirectory()) {
						i = j + 1;
						return CreateShareFile(fs[j]);
					}
				}
				return null;
			}
		};
		return e;

	}

	public ShareFile CreateShareFile(File f) {
		ShareFile sf = new ShareFile(f);
		sf.setParent(this);
		return sf;
	}

	public void Delete(int row) {
		File[] fs = f.listFiles();
		fs[row].delete();
	}

	@Override
	public boolean getAllowsChildren() {
		// System.out.println("getAllowsChildren");
		return f.isDirectory();
	}

	// --取子节点，系统会自动调用此方法
	@Override
	public TreeNode getChildAt(int index) {
		// System.out.println("getChildAt:"+index);
		return getChildDir(index);// 不显示文件
	}

	// --取子节点数量（树中不显示文件）
	@Override
	public int getChildCount() {
//		//System.out.println("getChildCount:");

		int count = 0;
		if (fs != null) {
			for (int i = 0; i < fs.length; i++) {
				if (fs[i].isDirectory())
					count++;
			}
		}
		return count;
	}

	// --取子目录节点
	public TreeNode getChildDir(int index) {
		// System.out.println("getChildDir:"+index);
		int count = 0;
		for (int i = 0; i < fs.length; i++) {
			if (fs[i].isDirectory()) {
				if (count == index) {
					ShareFile sf = CreateShareFile(fs[i]);
					sf.setParent(this);
					return sf;
				}
				count++;
			}
		}
		return null;
	}

	// 获取子节点集合接口

	public ShareFile getChildShareFile(int index) {
		// System.out.println("getChildShareFile:"+index);
		return CreateShareFile(fs[index]);
	}

	public File getF() {
		return f;
	}

	@Override
	public Icon getIcon() {
		if (this instanceof ShareRoot)
			return IMG.iis;// 共享目录图标
		return f.isDirectory() ? IMG.iid : IMG.iif;// 文件或文件夹图标
	}

	@Override
	public int getIndex(TreeNode node) {
		// System.out.println("getIndex:"+node);
		ShareFile sf = (ShareFile) node;
		int count = 0;
		for (int i = 0; i < fs.length; i++) {
			if (fs[i].isDirectory()) {
				if (fs[i].getAbsolutePath().equals(sf.f.getAbsolutePath())) {
					return count;
				} else
					count++;
			}
		}
		return -1;
	}

	@Override
	public TreeNode getParent() {
		// System.out.println("getParent:");
		// -- 系统第一个调用的方法中更新目录列表
		return parent;
	}

	@Override
	public void insert(MutableTreeNode mtn, int index) {

	}

	@Override
	public boolean isLeaf() {
		return !f.isDirectory();
	}

	public void open() {
		try {
			// --打开关联应用程序
			Desktop.getDesktop().open(this.f);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			JOptionPane.showMessageDialog(null, "对不起，打开关联文件失败。\n文件路径:" + this.f.getAbsolutePath(), "打开文件", JOptionPane.ERROR_MESSAGE);
		}
	}

	public void openDir() {
		try {
			// --打开文件所在目录
			Desktop.getDesktop().open(this.f.getParentFile());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			JOptionPane.showMessageDialog(null, "对不起，打开目录失败。\n文件路径:" + this.f.getAbsolutePath(), "打开文件", JOptionPane.ERROR_MESSAGE);
		}
	}

	@Override
	public void remove(int index) {

	}

	@Override
	public void remove(MutableTreeNode arg0) {

	}

	@Override
	public void removeFromParent() {
		// System.out.println("removeFromParent:");
		parent.removeFromParent();
		this.parent = null;
	}

	public void setF(File f) {
		this.f = f;
	}

	@Override
	public void setParent(MutableTreeNode newParent) {
		// System.out.println("setParent:"+newParent);
		parent = newParent;
	}

	@Override
	public void setUserObject(Object arg0) {
		// System.out.println("setUserObject:"+arg0);

	}

	/**
	 * 文件夹名字
	 */
	@Override
	public String toString() {
		return f.getName();
	}

	protected void updateFileList() {
		fs = f.listFiles();
	}

	/*
	 * isLeaf: isLeaf: getChildCount: getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:8 setParent:代码
	 * getChildShareFile:8 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 isLeaf: getChildCount: getChildAt:11
	 * getChildDir:11 setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下)
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: getChildShareFile:5 setParent:代码 getChildShareFile:5
	 * setParent:代码 getChildShareFile:5 setParent:代码 getChildShareFile:5
	 * setParent:代码 getChildShareFile:5 setParent:代码 getChildShareFile:5
	 * setParent:代码 getChildShareFile:5 setParent:代码 getChildShareFile:5
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:7 setParent:代码 getChildShareFile:7
	 * setParent:代码 getChildShareFile:7 setParent:代码 getChildShareFile:7
	 * setParent:代码 getChildShareFile:7 setParent:代码 getChildShareFile:7
	 * setParent:代码 getChildShareFile:7 setParent:代码 getChildShareFile:7
	 * setParent:代码 isLeaf: getChildCount: getChildAt:11 getChildDir:11
	 * setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下) getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册
	 * isLeaf: getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:5 setParent:代码 getChildShareFile:5 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:6 setParent:代码 getChildShareFile:6 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码
	 * getChildShareFile:7 setParent:代码 getChildShareFile:7 setParent:代码 isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: getChildShareFile:5
	 * setParent:代码 getChildShareFile:5 setParent:代码 getChildShareFile:5
	 * setParent:代码 getChildShareFile:5 setParent:代码 getChildShareFile:5
	 * setParent:代码 getChildShareFile:5 setParent:代码 getChildShareFile:5
	 * setParent:代码 getChildShareFile:5 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:6
	 * setParent:代码 getChildShareFile:6 setParent:代码 getChildShareFile:7
	 * setParent:代码 getChildShareFile:7 setParent:代码 getChildShareFile:7
	 * setParent:代码 getChildShareFile:7 setParent:代码 getChildShareFile:7
	 * setParent:代码 getChildShareFile:7 setParent:代码 getChildShareFile:7
	 * setParent:代码 getChildShareFile:7 setParent:代码 isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * isLeaf: isLeaf: isLeaf: isLeaf: getChildCount: getChildAt:11
	 * getChildDir:11 setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下)
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册
	 * isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount: getChildAt:11
	 * getChildDir:11 setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下)
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册
	 * isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount: getChildAt:11
	 * getChildDir:11 setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下)
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:学习视频 setParent:学习视频
	 * getIndex:简单Servlet(下) getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册
	 * isLeaf: isLeaf: getChildCount: getChildAt:11 getChildDir:11
	 * setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下) getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册
	 * isLeaf: isLeaf: getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * isLeaf: isLeaf: getChildCount: getChildAt:0 getChildDir:0 setParent:忆捷硬盘
	 * setParent:忆捷硬盘 isLeaf: getChildAt:1 getChildDir:1 setParent:忆捷硬盘
	 * setParent:忆捷硬盘 isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf:
	 * isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf:
	 * isLeaf: getChildCount: getChildAt:0 getChildDir:0 setParent:3_JSP基础语法（上）
	 * setParent:3_JSP基础语法（上） getIndex:代码 getChildCount: getChildAt:11
	 * getChildDir:11 setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下)
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount:
	 * isLeaf: getChildCount: getChildAt:0 getChildDir:0 setParent:8_request对象
	 * setParent:8_request对象 getIndex:代码 getChildCount: isLeaf: isLeaf: isLeaf:
	 * isLeaf: isLeaf: isLeaf: getChildCount: isLeaf: getChildCount:
	 * getChildAt:1 getChildDir:1 setParent:忆捷硬盘 setParent:忆捷硬盘 getIndex:金山毒霸
	 * isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf:
	 * isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:0 getChildDir:0 setParent:3_JSP基础语法（上）
	 * setParent:3_JSP基础语法（上） getIndex:代码 getChildCount: getChildAt:11
	 * getChildDir:11 setParent:学习视频 setParent:学习视频 getIndex:简单Servlet(下)
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount:
	 * isLeaf: getChildCount: getChildAt:0 getChildDir:0 setParent:8_request对象
	 * setParent:8_request对象 getIndex:代码 getChildCount: isLeaf: isLeaf: isLeaf:
	 * isLeaf: isLeaf: isLeaf: getChildCount: isLeaf: getChildCount:
	 * getChildAt:1 getChildDir:1 setParent:忆捷硬盘 setParent:忆捷硬盘 getIndex:金山毒霸
	 * isLeaf: isLeaf: isLeaf: getChildCount: getChildAt:1 getChildDir:1
	 * setParent:忆捷硬盘 setParent:忆捷硬盘 getIndex:金山毒霸 getChildCount: getChildAt:11
	 * getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: getChildCount: isLeaf: isLeaf: getChildCount:
	 * getChildAt:1 getChildDir:1 setParent:忆捷硬盘 setParent:忆捷硬盘 getIndex:金山毒霸
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: isLeaf: isLeaf: getChildCount: getChildAt:1
	 * getChildDir:1 setParent:忆捷硬盘 setParent:忆捷硬盘 getIndex:金山毒霸 getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册
	 * isLeaf: isLeaf: getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: isLeaf: isLeaf: isLeaf:
	 * isLeaf: getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录
	 * setParent:共享目录 getIndex:相册 isLeaf: getChildCount: isLeaf: getChildCount:
	 * getChildAt:1 getChildDir:1 setParent:忆捷硬盘 setParent:忆捷硬盘 getIndex:金山毒霸
	 * isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: isLeaf: getChildCount:
	 * getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册
	 * isLeaf: getChildCount: isLeaf: getChildCount: getChildAt:1 getChildDir:1
	 * setParent:忆捷硬盘 setParent:忆捷硬盘 getIndex:金山毒霸 isLeaf: isLeaf: isLeaf:
	 * getChildCount: getChildAt:1 getChildDir:1 setParent:忆捷硬盘 setParent:忆捷硬盘
	 * getIndex:金山毒霸 getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录
	 * setParent:共享目录 getIndex:相册 isLeaf: isLeaf: getChildCount: getChildAt:11
	 * getChildDir:11 setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf:
	 * getChildCount: isLeaf: getChildCount: getChildAt:11 getChildDir:11
	 * setParent:共享目录 setParent:共享目录 getIndex:相册 isLeaf: getChildCount: isLeaf:
	 * getChildCount: getChildAt:11 getChildDir:11 setParent:共享目录 setParent:共享目录
	 * getIndex:相册 isLeaf: getChildCount: isLeaf: isLeaf: getChildCount:
	 */
}